package roborally.exceptions;

import be.kuleuven.cs.som.annotate.Basic;

public class ProgramParsingError extends RuntimeException {

	/**
	 * Initialize this new program parsing error with a message.
	 * 
	 * @param  message
	 *         The message for this new program parsing error.
	 * @post   The message of this new program parsing error is equal
	 *         to the given message.
	 *       | new.getMessage() == message
	 */
	public ProgramParsingError(String message) {
		this.message = message;
	}
	
	/**
	 * Return the message registered for this program parsing error.
	 */
	@Basic
	public String getMessage() {
		return this.message;
	}

	/**
	 * Variable registering the message involved in this program parsing error.
	 */
	private final String message;
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

}
